package com.zh.work.entity.agent;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@ApiModel(value = "代理商级别关系实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("agent_relate")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AgentRelateEntity  extends Model<AgentRelateEntity> {
  private static final long serialVersionUID = 555159547272897030L;
  @ApiModelProperty(value = "主键", name = "id")
  private Long id;
  @ApiModelProperty(value = "代理商编号(4位地区代码+6位顺序号)", name = "agentNo")
  @TableField(value = "agentno")
  private String agentNo;
  @ApiModelProperty(value = "上级代理商编号", name = "superAgentNo")
  @TableField("superAgentno")
  private String superAgentNo;
  @ApiModelProperty(value = "上级代理商名称", name = "superAgentName")
  private String superAgentName;
  @ApiModelProperty(value = "代理商级别", name = "agentLevel")
  private Integer agentLevel;

  public AgentRelateEntity() { }

  public AgentRelateEntity(String agentNo, String superAgentNo, String superAgentName, Integer agentLevel) {
    this.agentNo = agentNo;
    this.superAgentNo = superAgentNo;
    this.superAgentName = superAgentName;
    this.agentLevel = agentLevel;
  }
}
